<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/mytag.jspf"%>

<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<title>套餐管理</title>
<script src="assets/js/package/package.js"></script>
</head>
<body>
	<ol class="am-breadcrumb am-breadcrumb-slash am-padding" style="margin-bottom: 0px;">
		<li><a href="management/index">首页</a></li>
		<li><a href="management/package/index">套餐管理</a></li>
		<li class="am-active">新增</li>
	</ol>
	<div class="am-g">
		<div class="am-u-md-12">
			<form class="am-form am-form-horizontal" id="form" name="form"  method="post" action="management/package/save">
			<input id="compId" name="compId" type="hidden" value="${t.compId }">
			<div class="am-tabs am-margin">
					<ul class="am-tabs-nav am-nav am-nav-tabs">
						<li class="am-active"><a href="javascript:void(0)">基本信息</a></li>
					</ul>
					<div class="am-tabs-bd" style="overflow:visible">
						<div class="am-tab-panel am-active">
							<div class="am-form-group">
								<label class="am-u-md-2 am-form-label">套餐名称</label>
								<div class="am-u-md-4 am-u-end">
									<input type="text" id="name" name="name" value="${t.name}" class="am-form-field am-input-sm" maxlength="50">
								</div>
							</div>
							<div class="am-form-group">
								<label class="am-u-md-2 am-form-label">请选择服务</label>
								<div class="am-u-md-4 am-u-end">
									<select id="serviceSel" name="serviceSel" multiple>
									<c:forEach items="${items}" var="i">
  										<option value="${i.serviceItemId}">${i.name}</option>
  									</c:forEach>
									</select>
								</div>
							</div>
							<div class="am-form-group">
								<label class="am-u-md-2 am-form-label">服务名称</label>
								<label class="am-u-sm-4 am-u-md-2 am-text-center am-form-label">门店等级</label>
								<label class="am-u-sm-4 am-u-md-2 am-text-left am-form-label">会员价</label>
								<label class="am-u-md-2 am-form-label am-text-left  am-u-end">非会员价</label>
							</div>
							<div id="itemDiv">
							</div>
						</div>
						<div class="am-cf"></div>
					</div>
				</div>
				<div class="am-margin">
					<button class="am-btn am-btn-primary am-btn-xs" type="submit"><span class="am-icon-check"></span> 保存</button>
					<a href="javascript:;" onClick="javascript:history.back(-1);" class="am-btn am-btn-primary am-btn-xs"><span class="am-icon-times"></span> 取消</a>
				</div>
			</form>
		</div>
	</div>
	<%@include file="/WEB-INF/jsp/management/package/package.jspf"%>
</body>
</html>
